<div class="action-dialog-model-fixed-body">
	<div class="detailsBox">
		<div class="openBox detaiTab">
			<form action="/rsubmitted/add_save" class="action-ajax-form"
				data-action-html="#action_load_body" method="post" id="entity">
				<input name="id" value="${vo.id}" type="hidden">
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td class="bg" align="right" width="15%">贷款单号:</td>
						<td width="35%"><@autocomplete
							url="/rsubmitted/searchByBillCodecommon?code=" name="billCode"
							value="${vo.billCode}" hideIdName="loanappNo"
							hideIdValue="${vo.loanappNo}"
							action\-autocomplete\-callback\-function="fixname"/>(联想)</td>
						<td class="bg" align="right" width="15%">借款人:</td>
						<td><span name="loanUserName1" id="loanUserName1">${vo.loanUserName}</span> <input
							name="loanUserName" id="loanUserName" type="hidden"
							value="${vo.loanUserName}" readonly="readonly" /></td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">贷款到期日:</td>
						<td width="35%"><span name="loanTime1" id="loanTime1"><#if vo.loanExpireDate??>${vo.loanExpireDate?string('yyyy-MM-dd')}</#if></span>
							<input name="loanExpireDate" id="loanTime" class="tabInp"
							type="hidden" value="${vo.loanExpireDate}" readonly="readonly" /></td>
						<td class="bg" align="right" width="15%">代偿金额<span
							style="color: red;">*</span>:
						</td>
						<td><input name="compensatoryMount" id="compensatoryMount"
							class="inputNum" type="text" value="${vo.compensatoryMount}" /><input
							name="type" type="hidden" id="sas" value="" /></td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">代偿时间<span
							style="color: red;">*</span>:
						</td>
						<td width="35%">
						<#if vo.compensatoryDate??>
							<#assign compensatoryDate= vo.compensatoryDate?string('yyyy-MM-dd') />
						</#if>
						<@date name="compensatoryDate"
							id="compensatoryDate" class="tabInp"
							value="${compensatoryDate}" /></td>
						<td align="right" class="bg" width="15%">欠还金额<span
							style="color: red;">*</span>：
						</td>
						<td><input class="inputNum" type="text" name="oweMount"
							value="${vo.oweMount}" /></td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">合同编号<span
							style="color: red;">*</span>:
						</td>
						<td colspan="3"><input name="contractNumber"
							id="contractNumber" class="tabInp" type="text"
							value="${vo.contractNumber}" /></td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">财产信息<span
							style="color: red;">*</span>:
						</td>
						<td colspan="3"><textarea rows="4" name="propertyInfo"
								cols="80" style="resize: none;" placeholder="最多只能输入500字"
								onpropertychange="if(value.length>500) value=value.substr(0,500)">${vo.propertyInfo}</textarea>
						</td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">报送理由<span
							style="color: red;">*</span>:
						</td>
						<td colspan="3"><textarea rows="4" name="submittedReason"
								cols="80" style="resize: none;" placeholder="最多只能输入500字"
								onpropertychange="if(value.length>500) value=value.substr(0,500)">${vo.submittedReason}</textarea>
						</td>
					</tr>
					<tr>
						<td class="bg" align="right" width="15%">法律清收建议<span
							style="color: red;">*</span>:
						</td>
						<td colspan="3"><textarea rows="4" name="lavReason" cols="80"
								style="resize: none;" placeholder="最多只能输入500字"
								onpropertychange="if(value.length>500) value=value.substr(0,500)">${vo.lavReason}</textarea>
						</td>
					</tr>
					<tr>
						<td colspan="4" style="text-align: center;"><input
							type="submit" value="保存" class="btn_auto_30 btn_blue" id="sv" />
							&nbsp;&nbsp;&nbsp;&nbsp; <input type="button" value="保存并提交"
							onclick="saveAndStart();" class="ajax btn_auto_30 btn_blue">
							&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript">
	function fixname(data) {
		$("#loanUserName").val(data[3]);
		$("#loanUserName1").html(data[3]);
		$("#loanTime").val(data[4]);
		$("#loanTime1").html(data[4]);
		console.log(data);
		console.log(data[0]);
	}
	function saveAndStart() {
		$("#sas").val("SAS")
		$("#sv").click();
	}
</script>